package leetcode100;

import java.util.Scanner;

/**
 * @author shkstart
 * @create 2022-12-22-20:56
 */
public class Meme20_1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别

            String a = in.next();
            char[] arr = a.toCharArray();
            for(int i=0;i<(arr.length/2);i++){
                char temp = arr[i];
                arr[i] = arr[arr.length-i-1];
                arr[arr.length-1-i]=temp;
            }
            StringBuffer sb = new StringBuffer();
            for (int i = 0; i < arr.length; i++) {
                sb.append(arr[i]);
            }
            System.out.println(sb.toString());

    }
}
